package Try;

import java.util.Scanner;

public class Test2 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        if (f1(a)) {
            System.out.println(a + "是素数");
        } else {
            System.out.println(a + "不是素数");
        }
    }

    private static boolean f1(int a) {
        for (int i = 2; i <= a / 2; i++) {
            if (a % i == 0) {
                return false;
            }
        }
        return true;
    }
}
